package Help.For.You.Other;

import java.util.Map;

public class PageVO {
	
	/*다음페이지*/
	private String PAGE_NEXT;
	/*본다음페이지*/
	private String PAGE_ORIGINALLY;
	/*현제페이지*/
	private String PAGE_NOW;
	/*페이지이동중 변환이 있는지여부 확인  변환X=0,변환O=1*/
	private int PAGE_CHECK;
	
	private Map<String,Object> PAGE_TS;

	public String getPAGE_NEXT() {
		return PAGE_NEXT;
	}

	public void setPAGE_NEXT(String pAGE_NEXT) {
		PAGE_NEXT = pAGE_NEXT;
	}

	public String getPAGE_ORIGINALLY() {
		return PAGE_ORIGINALLY;
	}

	public void setPAGE_ORIGINALLY(String pAGE_ORIGINALLY) {
		PAGE_ORIGINALLY = pAGE_ORIGINALLY;
	}

	public String getPAGE_NOW() {
		return PAGE_NOW;
	}

	public void setPAGE_NOW(String pAGE_NOW) {
		PAGE_NOW = pAGE_NOW;
	}

	public int getPAGE_CHECK() {
		return PAGE_CHECK;
	}

	public void setPAGE_CHECK(int pAGE_CHECK) {
		PAGE_CHECK = pAGE_CHECK;
	}

	public Map<String, Object> getPAGE_TS() {
		return PAGE_TS;
	}

	public void setPAGE_TS(Map<String, Object> pAGE_TS) {
		PAGE_TS = pAGE_TS;
	} 
	
	public void changeSuccsesPage() {
		PAGE_NOW=PAGE_NEXT;
		if(PAGE_CHECK==1){
			PAGE_NOW=PAGE_ORIGINALLY;
		}
		PAGE_ORIGINALLY=null;
		PAGE_NEXT=null;
		PAGE_CHECK=0;						
	}
	
	public void changePage(String nextpage) {
		PAGE_ORIGINALLY=PAGE_NEXT;
		PAGE_CHECK=1;
		PAGE_NEXT=nextpage;				
	}	
}
